package com.hc.service;

import com.hc.common.bean.PageBean;
import com.hc.domain.Category;
import com.hc.domain.Technology;
import com.hc.query.TechnologyVO;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: hecai
 * @date: 2021/11/9 11:17
 * @description:
 */
public interface TechnologyService{


    int deleteByPrimaryKey(Long id);

    int insert(Technology record);

    int insertSelective(Technology record);

    Technology selectByPrimaryKey(Long id);

    String selectTidByPrimaryKey(Long id);

    /**
     * 查询多个技术 ，搜索框模糊查找
     * @param pageNum 当前页
     * @param pageSize 每页数据量
     * @param technologyVO 模糊查找
     * @return
     */
    PageBean<Technology> selectPageByCondition(Integer pageNum, Integer pageSize, TechnologyVO technologyVO);

    int updateByPrimaryKeySelective(Technology record);

    int updateByPrimaryKey(Technology record);
    Technology selectByName(String name);

    List<Technology> getTechnologyByCondition();
    List<Long> selectIdsByName(@Param("names") String[] names);
    /**
     * 根据用户id启用技术
     * @param id
     * @return
     */
    int avctiveByPrimaryKey(Long id);
    /**
     * 根据用户id启用技术
     * @param id
     * @return
     */
    int disabledByPrimaryKey(Long id);
}